package com.leyou.item.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.leyou.common.dto.PageDTO;
import com.leyou.item.dto.SpuDTO;
import com.leyou.item.entity.Spu;

/**
 * @author BaiZY on 2020/8/25.
 * @version 1.0
 */
public interface SpuService extends IService<Spu> {
    PageDTO<SpuDTO> queryByPage(Long bid, Long cid, Long id, Long page, Long rows, Boolean saleable);

    SpuDTO queryGoodsById(Long id);

    void saveGoods(SpuDTO spuDTO);

    void updateSpuSaleable(Long id, Boolean saleable);

    void updateGoods(SpuDTO spuDTO);
}
